<template>
    <div>
      <div v-html="content">{{content}}</div>
    </div>
</template>

<script>
    import {requestPost} from "../../../../network/request";

    export default {
      props: ['id'],
        name: "productProfile",
        data(){
          return {
            pid: this.id,
            content: ''
          }
        },
      mounted() {
        requestPost({
          url: 'product/select',
          data: {
            id: this.pid
          }
        }).then(res=>{
          this.content = res.data.html
        })
      }
    }
</script>

<style scoped>

</style>
